/* Register a function to be called when `exit' is called.  */
#include <stdlib.h>
#include <stdio.h>
void fun()
{
    printf("fun\n");
}

int main()
{
    atexit(fun);
    printf("hello\n");
	sleep(1);
    return 0;
}

